<template>
  <router-view/>
</template>
<script setup>
import {defineComponent, ref} from "vue";
import {validateNull} from "@/util/validate.js";
import {useCssVar} from '@vueuse/core';

const el = ref(null)
if (!validateNull(window.localStorage.getItem("settings"))) {
  const settings=JSON.parse(window.localStorage.getItem("settings"))
  const color = useCssVar('--el-color-primary', el)
  color.value =settings.theme||color.value
}
</script>

<style>
</style>
